<?php
/**
 * 客户管理控制器
 * @authors 大个子 (354449881@qq.com)
 * @date    2018-03-30 16:09:09
 * @version 1.0
 */

namespace Home\Controller;
use Think\Controller;
class ClientController extends CommonController{
	// 定义数据表
	private $db;

	// 构造函数实例化ClientModel
	public function _initialize(){
		parent::_initialize();
		$this->db = D('Client');
	}

	// 客户列表
	public function index(){
		dump($_SESSION['ThinkUser']);
		$_SESSION['ThinkUser']['id'];exit;
		$this->display();
	}

	// jaxa加载客户列表
	public function ajaxIndex(){
		$keyword = I('get.keyword');

		$where['Recycle'] == 0;//判断是否在回收站0表示正常
		$where['Uid']=$_SESSION['ThinkUser']['ID'];
	}
}
?>